package com.xueyi.aixihu.reqeust;

import lombok.Data;
import org.springframework.util.StringUtils;

import javax.validation.constraints.NotNull;

/**
 * @author hxs
 * @createDate 2023/7/12 11:13
 * @description 上传凭证req
 */
@Data
public class UploadVoucherReq {
    @NotNull(message = "参数异常")
    private Integer id;

    private String img;

    public void format() {
        img = StringUtils.hasLength(img) ? img.trim() : null;
    }
}
